<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="${staticServerAddress }/title.ico">
<title>404页面</title>
<base href="<%=basePath %>" /> 
<link href="css/404.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color:#f1f4f8;">

<div class="st"><img src="images/404_03.png"></div> 
<div class="fh"><a href="#"><img src="images/404_06.png"></a></div>
<c:if test="${errorMsg!=null }">
	<div class="msg">Sooooo Sorry,出错啦,错误信息${errorMsg }</div>
</c:if>
<div class="fh msg"><b id="num">30</b>秒后跳转到<a href="home">首页</a></div>

<!--脚本开始--> 
<script> 
function countDown(secs){ 
	if(--secs>0) {
		document.getElementById("num").innerText=secs;
		setTimeout(function(){countDown(secs)},1000);  
	}else{
		window.location.href='home';
	} 
}
	countDown(30); 
</script> 
<!--脚本结束--> 

</body>
</html>